
FC = gfortran
RM = rm -f

#FFLAGS = -O3
FFLAGS = -g

PROBLEMS=/home/giampo/CODICI/derivative-free/PROBLEMS/TEST_MINMAX

OBJS = main.o DFL.o halton.o $(PROBLEMS)/problems.a

all:  $(OBJS) 
	$(FC) -o nonsmooth $(OBJS)

.SUFFIXES : .f90 .o

$(PROBLEMS)/problems.a:
	make -C $(PROBLEMS)

.f90.o: $* ; $(FC) $(FFLAGS) -c $*.f90

clean: 
	$(RM) *.o
	$(RM) *.mod
	$(RM) nonsmooth

